﻿<%@ Page Language="C#" MasterPageFile="~/Admin/adminmain.master" ValidateRequest="false" AutoEventWireup="true" CodeFile="adminmain.aspx.cs" Inherits="Admin_Default2" Title="Untitled Page" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<%@ Register assembly="CKFinder" namespace="CKFinder" tagprefix="CKFinder" %>

<%@ Register assembly="GMDatePicker" namespace="GrayMatterSoft" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <asp:LoginView ID="LoginView1" runat="server">
        <LoggedInTemplate>
            <asp:MultiView ID="MultiView1" runat="server">
                <asp:View ID="View1" runat="server">
               
                
                
             <asp:GridView ID="GridView4" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ustid" 
                DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
                    Width="1000px">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    
                        
                          <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                    <asp:BoundField DataField="ustid" HeaderText="ustid" InsertVisible="False" 
                        ReadOnly="True" SortExpression="ustid" Visible="False" />
                    <asp:BoundField DataField="Umenusmi" HeaderText="Umenusmi" 
                        SortExpression="Umenusmi">

                
                          <ItemStyle Width="20px" />
                          </asp:BoundField>

                
                          <asp:TemplateField>
                              <EditItemTemplate >

                                  <FCKeditorV2:FCKeditor ID="FCKeditor1" Value='<%# Bind("Umenuaciklama") %>' runat="server" BasePath="fckeditor/" 
                                      Height="600px" ToolbarSet="Default">
                                  </FCKeditorV2:FCKeditor>

                              </EditItemTemplate>
                          </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConflictDetection="CompareAllValues" 
                ConnectionString="<%$ ConnectionStrings:acsbagla %>" 
                DeleteCommand="DELETE FROM [tblustmenu] WHERE [ustid] = ? AND [Umenusmi] = ? AND [Umenuaciklama] = ?" 
                InsertCommand="INSERT INTO [tblustmenu] ([ustid], [Umenusmi], [Umenuaciklama]) VALUES (?, ?, ?)" 
                OldValuesParameterFormatString="original_{0}" 
                ProviderName="<%$ ConnectionStrings:acsbagla.ProviderName %>" 
                SelectCommand="SELECT * FROM [tblustmenu]" 
                
                    
                    
                        
                        
                        UpdateCommand="UPDATE tblustmenu SET Umenusmi = ?, Umenuaciklama = ? WHERE (ustid = ?)">
                    <DeleteParameters>
                        <asp:Parameter Name="original_ustid" Type="Int32" />
                        <asp:Parameter Name="original_Umenusmi" Type="String" />
                        <asp:Parameter Name="original_Umenuaciklama" Type="String" />
                    </DeleteParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="ustid" Type="Int32" />
                    </UpdateParameters>
                    <InsertParameters>
                        <asp:Parameter Name="ustid" Type="Int32" />
                        <asp:Parameter Name="Umenusmi" Type="String" />
                        <asp:Parameter Name="Umenuaciklama" Type="String" />
                    </InsertParameters>
            </asp:SqlDataSource>
            
                </asp:View>
            
            </asp:MultiView>
         
        </LoggedInTemplate>
    </asp:LoginView>
    
            </asp:Content>

